<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="test02-do.html">测试</a>

    <script>
        // 设置数据到本地存储中，以便传递数据到另一个页面 
        localStorage.setItem("username","sansan") ;
        localStorage.setItem("userage",18) ;

    </script>
</body>
</html>